refresh
inline suspend fun <T : BaseModel> refresh(collection: String, expandRelations: ExpandRelations = ExpandRelations(), fields: ShowFields = ShowFields()): AuthResponse<T>
Returns a new auth response (token and user data) for already authenticated auth record. This method is usually called by users on page/screen reload to ensure that the previously stored data in pb.authStore is still valid and up-to-date.
Parameters
collection
ID or name of the auth collection.